package com.hbnu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hbnu.pojo.Item;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ItemMapper extends BaseMapper<Item> {

    @Select("select * from tb_item ORDER BY updated DESC limit #{start},#{end}")
    List<Item> queryItemByPage(@Param("start") Integer start, @Param("end") Integer end);
}
